package yt.demo.appcommonbean.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;
import yt.demo.appcommonbean.http.IResponseCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class LogicException extends RuntimeException{
    private String message;

    private IResponseCode code;

    public LogicException(String message) {
        this.message = message;
    }

    public LogicException(IResponseCode code) {
        this.code = code;
    }

    public LogicException(String message, IResponseCode code) {
        this.message = message;
        this.code = code;
    }
}
